package lorin2;
import lorin.*;
public class Testlorin{
	public static void main(String[]args){
		Customer customer=new Customer("Jane","Smith","18");
		Account account=new Account(500);
		//Create an account that can has a 500.00 balance.
	
		    System.out.println ("Creating the customer Jane Smith.");
	        System.out.println("Creating her account with a 500.00 balance.");
	        customer.setAccount(account);
	        System.out.println("Withdraw 150.00");
	        customer.getAccount().withdraw(150);
	        System.out.println("Deposit 22.50");
	        customer.getAccount().deposit(22.5);
	        System.out.println("Withdraw 47.62");
	        customer.getAccount().withdraw(47.62);
	        System.out.println("Withdraw400.00:"+account.withdraw(400.00));
	        System.out.println("Customer [" + customer.getLastName()
	                + ", " + customer.getFirstName()
	                + "] has a balance of " + account.getBalance());
}
}
